<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改码商配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-channelSetting-edit" th:object="${channelSetting}">
            <input id="rateId" name="rateId" th:field="*{rateId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">码商代理id：</label>
				<div class="col-sm-8">
					<input id="channelId" name="channelId" th:field="*{channelId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">支付类型：</label>
				<div class="col-sm-8">
					<select  id="payType"  name="payType" class="form-control m-b" >
						<option th:each="dict : ${payerPayTypes}" th:text="${dict.payLabel}" th:value="${dict.payType}"  th:field="*{payType}"></option>
					</select>
				</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">预充值费率：</label>
				<div class="col-sm-8">
					<input id="depositRate" name="depositRate" th:field="*{depositRate}" class="form-control" type="text">
					<div>注:-2表示不需要预充值;-1表示金额跟随系统默认设置;大于0表示自定义</div>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/channelSetting";
		$("#form-channelSetting-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-channelSetting-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
